//
//  DWLogManager.h
//  OCAPPDemo
//
//  Created by OS on 2022/1/10.
//

#import <UIKit/UIKit.h>
#import <CocoaLumberjack/CocoaLumberjack.h>

static const int ddLogLevel = DDLogLevelVerbose;

#define QKLog(fmt, ...) { [[DWLogManager sharedManager] log:[NSString stringWithFormat:(fmt), ##__VA_ARGS__]]; }

/// 崩溃管理类
@interface DWLogManager : NSObject

+ (instancetype)sharedManager;

+ (NSString *)getCrashPath;

+ (NSString *)getLogPath;

- (void)startDDLog;
- (void)startCrash;

- (void)log:(NSString *)string;
- (void)exple;

@end

/// 崩溃模型
@interface DWCrashLogModel : NSObject

@property (nonatomic, copy) NSString *appVer;
@property (nonatomic, copy) NSString *buildVer;
@property (nonatomic, copy) NSString *systemVer;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *reason;
@property (nonatomic, strong) NSArray<NSString *> *message;
@property (nonatomic, copy) NSString *crateDate;

@end
